package com.linshengjian.snowball.guard.service;

import com.linshengjian.snowball.guard.exception.ThirdPartyLoginException;
import com.linshengjian.snowball.guard.model.AuthUser;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

public interface ILoginLabelHandler {
    /**
     * 获取用户
     * @param username
     * @return
     */
    AuthUser findByUserName(String username);

    /**
     * 获取用户
     * @param verifyObj 验证对象
     * @return
     */
    AuthUser findByVerifyObj(String verifyObj);

    AuthUser findByThirdParty(HttpServletRequest request) throws ThirdPartyLoginException;
}
